package edu.sctu.wulixia.month4and5.day20150518;

/**
 * Created by user14 on 2015/5/18.
 */
public class Teacher {
    public String name;
    public String sex;
    public String position;
    public int number;
    public String lesson;
    public Student[] student;

    public Teacher[] isTeachers() {
        Teacher[] teacherarrey = new Teacher[2];
        Teacher teacher = new Teacher();

        for (int i = 0; i <= teacherarrey.length; i++){
            teacher.name = "张三" + i;
            if (i%2 == 0) {
                teacher.sex ="男";
            }else{
                teacher.sex ="女";
            }
            if(i%2 == 0){
                teacher.position = "教授";
            }else {
                teacher.position = "讲师";
            }
            if(i%2 == 0){
                teacher.number =10010+i;
            }else {
                teacher.number =10010+i;
            }
            if(i%2 == 0){
                teacher.lesson ="C语言";
            }else {
                teacher.lesson ="数据结构";
            }

            Student[] studentarrey = new Student[3];
            Student student = new Student();
            for (int j = 0; j < studentarrey.length; j++) {
                student.name = "李四"+i;
                student.score = 56 + i;
                student.number = 10010 + i;
                student.age = 16 + i;
                student.address = "南充"+i;
            if(i%2 != 0){
                student.sex = "男";
            }else{
                student.sex = "女";
            }
                studentarrey[j] = student;
        }
            teacher.student = studentarrey;
        }
        return teacherarrey;
    }


}
